
#ifndef _INAPP_PURCHASE_MANAGER_C_H
#define _INAPP_PURCHASE_MANAGER_C_H



#ifdef __cplusplus
#define EXTERN_C extern "C"
#else
#define EXTERN_C extern
#endif




typedef	void (*OnPurchaseSuccess)(void);
typedef	void (*OnPurchaseFail)(void);

// C Wrapper funcitons
EXTERN_C void		CLoadStore(const char* ProductName,
                               OnPurchaseSuccess CallBackSucess,
                               OnPurchaseFail    CallBackFail
                               );

EXTERN_C int		CCanMakePurchases(void);
EXTERN_C void		CPurchaseProUpgrade(void);
EXTERN_C void       COnSuccess(void);
EXTERN_C void       COnFail(void);     
EXTERN_C void       COnCompleteLoadingStore(void); 
EXTERN_C void       CRestorePurchase(void);


#endif